package com.xu.factory;

/**
 *
 * @author xudenghui
 * @create 2023-05-15 10:39
 **/
public class CashRebate implements  CashSuper{

    private double moneyRebate = 1d;

    public CashRebate(String moneyRebate) {
        this.moneyRebate = Double.valueOf(moneyRebate);
    }

    public double acceptCash(double money) {
        return money*moneyRebate;
    }
}
